pattern-matching - définition. Qu'est-ce que pattern-matching
Diclib.com
Dictionnaire ChatGPT
Entrez un mot ou une phrase dans n'importe quelle langue 👆
Langue:

Traduction et analyse de mots par intelligence artificielle ChatGPT

Sur cette page, vous pouvez obtenir une analyse détaillée d'un mot ou d'une phrase, réalisée à l'aide de la meilleure technologie d'intelligence artificielle à ce jour:

  • comment le mot est utilisé
  • fréquence d'utilisation
  • il est utilisé plus souvent dans le discours oral ou écrit
  • options de traduction de mots
  • exemples d'utilisation (plusieurs phrases avec traduction)
  • étymologie

Qu'est-ce (qui) est pattern-matching - définition

ACT OF CHECKING A GIVEN SEQUENCE OF TOKENS FOR THE PRESENCE OF THE CONSTITUENTS OF SOME PATTERN
Pattern-matching; Pattern match; Pattern matches; Pattern Matching; Pattern matching (functional programming); Structural pattern matching

Pattern matching         
In computer science, pattern matching is the act of checking a given sequence of tokens for the presence of the constituents of some pattern. In contrast to pattern recognition, the match usually has to be exact: "either it will or will not be a match.
pattern matching         
1. A function is defined to take arguments of a particular type, form or value. When applying the function to its actual arguments it is necessary to match the type, form or value of the actual arguments against the formal arguments in some definition. For example, the function length [] = 0 length (x:xs) = 1 + length xs uses pattern matching in its argument to distinguish a null list from a non-null one. There are well known algorithm for translating pattern matching into conditional expressions such as "if" or "case". E.g. the above function could be transformed to length l = case l of [] -> 0 x:xs -> 1 : length xs Pattern matching is usually performed in textual order though there are languages which match more specific patterns before less specific ones. 2. Descriptive of a type of language or utility such as awk or Perl which is suited to searching for strings or patterns in input data, usually using some kind of {regular expression}. (1994-11-28)
Gestalt Pattern Matching         
STRING-MATCHING ALGORITHMS FOR DETERMINING THE SIMILARITY OF TWO STRINGS
Ratcliff/Obershelp Pattern Recognition; Ratcliff/Obershelp; R/O; Gestalt Pattern Matching
Gestalt Pattern Matching, also Ratcliff/Obershelp Pattern Recognition, is a string-matching algorithm for determining the similarity of two strings. It was developed in 1983 by John W.

Wikipédia

Pattern matching

In computer science, pattern matching is the act of checking a given sequence of tokens for the presence of the constituents of some pattern. In contrast to pattern recognition, the match usually has to be exact: "either it will or will not be a match." The patterns generally have the form of either sequences or tree structures. Uses of pattern matching include outputting the locations (if any) of a pattern within a token sequence, to output some component of the matched pattern, and to substitute the matching pattern with some other token sequence (i.e., search and replace).

Sequence patterns (e.g., a text string) are often described using regular expressions and matched using techniques such as backtracking.

Tree patterns are used in some programming languages as a general tool to process data based on its structure, e.g. C#, F#, Haskell, ML, Python, Ruby, Rust, Scala, Swift and the symbolic mathematics language Mathematica have special syntax for expressing tree patterns and a language construct for conditional execution and value retrieval based on it.

Often it is possible to give alternative patterns that are tried one by one, which yields a powerful conditional programming construct. Pattern matching sometimes includes support for guards.

Exemples du corpus de texte pour pattern-matching
1. He sympathizes, he said, with an analyst facing an unknown threat who gathers enormous volumes of data "and says, ‘There must be a secret in there.‘ " But pattern matching, he argued, will not find it.